package com.shop.cereshop.app.domain.notice;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import javax.validation.constraints.NotNull;

/**
 * 用户-系统通知关联表
 */
@ApiModel(description="用户-系统通知关联表")
@Data
public class CereSystemUserNotice implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="主键id")
    @NotNull(message = "id不能为null")
    private Long id;

    @ApiModelProperty(value="通知ID，关联 cere_system_notice.id")
    @NotNull(message = "noticeId不能为null")
    private Long noticeId;

    @ApiModelProperty(value="接收用户ID")
    @NotNull(message = "userId不能为null")
    private Long userId;

    @ApiModelProperty(value="是否已读：0-未读 1-已读")
    @NotNull(message = "isRead不能为null")
    private Integer isRead;

    @ApiModelProperty(value="阅读时间")
    private LocalDateTime readAt;

    @ApiModelProperty(value="创建时间")
    private LocalDateTime createdAt;


}